import { Schema, model } from "mongoose";
interface User {
  username?: string,
  name?: string,
  password?: string,
  phone?: string,
  createdAt?: string,
  type?: string
}
const userSchema = new Schema({
  username: String,
  name: String,
  password: String,
  phone: String,
  createdAt: String,
  type: String
})
export { User }
export default model<User>('User', userSchema)